﻿using UnityEngine;

/// <summary>
/// 给TimeLineManager注册animator，便于它查找Animator轨道上的对象
/// </summary>
public class AnimatorAnchor : MonoItem
{
    public string identifier; // 唯一标识符
    public Animator targetAnimator;
    private void Start()
    {
        targetAnimator = GetComponent<Animator>();
    }
    public override void OnShow()
    {
        GameRoot.Instance.managerService.GetManager<TimeLineManager>()?.AddAnimatorAnchor(this);
    }
}